
<!DOCTYPE HTML>
<html>
<title>管理平台 |</title>
<@h.head />
<link href="${path}/static/css/dpl-min.css" rel="stylesheet" type="text/css" />
<link href="${path}/static/css/bui-min.css" rel="stylesheet" type="text/css" />
<link href="${path}/static/css/main-min.css" rel="stylesheet" type="text/css" />
<body>
	<div class="header">
		<div class="dl-title">管理平台</div>
		<div class="dl-log">
			欢迎您，<span class="dl-log-user">${(user.name)!''}</span>
			<a href="${path}/logout" title="退出系统" class="dl-log-quit">[退出]</a>
		</div>
	</div>
	<div class="content">
		<div class="dl-main-nav">
			<div class="dl-inform">
				<div class="dl-inform-title">
					<s class="dl-inform-icon dl-up"></s>
				</div>
			</div>
			<ul id="J_Nav" class="nav-list ks-clear">
				<li class="nav-item dl-selected"><div class="nav-item-inner nav-home">功能列表</div></li>
				<li class="nav-item"><div class="nav-item-inner nav-quality-certified">快捷功能</div></li>
			</ul>
		</div>
		<ul id="J_NavContent" class="dl-tab-conten">
		</ul>
	</div>
</body>
</html>
<script type="text/javascript" src="${path}/static/js/bui-min.js"></script>
<script type="text/javascript" src="${path}/static/js/main-min.js"></script>
<script type="text/javascript" src="${path}/static/js/config-min.js"></script>
<script>
	$.ajax({
		async : false,
		type : 'get',
		url : "${path}/resources/currentResources.json",
		success : function(data) {
			var result = data;
			var firMenu = [{
				text: "首页",
				items:[{id: 'home', text: "首页", href: "${path}/home", closeable: false}]
			}];
			for (var i = 0; i < result.length; i++) {
				var menu = result[i];
				if (menu.pid == 0) {
					var secondMenu = [];
					for (var j = 0; j < result.length; j++) {
						var m = result[j];
						if (m.pid == menu.id) {
							secondMenu.push({id: m.id, text: m.name, href: "${path}" + m.url});
						}
					}
					firMenu.push({text: menu.name, items: secondMenu});
				}
			}
			
			var config = [{
				id : '1', homePage: 'home', menu : firMenu
			},{
				id : '2',
				menu : [{
					text: "快捷功能",
					items:[{
						id: 24, href: "${path}/sysuser/reset", text: "修改密码"
					}]
				}]
			}];
			
			BUI.use('common/main', function(){
				new PageUtil.MainPage({
					modulesConfig : config
				});
			});
		}
	});
</script>